﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 报警记录
    /// </summary>
    [SugarTable("cks_alarm_record")]
    [Table(Name = "cks_alarm_record")]
    public class CksAlarmRecord : BaseEntity
    {
        /// <summary>
        /// Id 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 设备名称 
        /// </summary>
        public string DeviceName { get; set; } = string.Empty;

        /// <summary>
        /// 报警地址 
        /// </summary>
        public string SignalAddress { get; set; } = string.Empty;

        public int PlcId {  get; set; }

        public string StationCode { get; set; } = string.Empty;
        public int AlarmDictId {  get; set; }
        /// <summary>
        /// 开始时间 
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 报警代码 
        /// </summary>
        public string AlarmCode { get; set; } = string.Empty;

        /// <summary>
        /// 故障原因 
        /// </summary>
        public string FaultCase { get; set; } = string.Empty;

        /// <summary>
        /// 解决方法 
        /// </summary>
        public string Solution { get; set; } = string.Empty;

        /// <summary>
        /// 状态 1报警中 10报警已消除 
        /// </summary>
        public int Status { get; set; } = 1;

        /// <summary>
        /// 禁用状态 
        /// </summary>
        public bool Nullity { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        

    }
}